<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        [title]{
            color: red;
        }
        input[type=text]{
            background-color: red;
        }

        [title='666']{
            color:green;
        }
    </style>
</head>
<body>

<div title="666">1111</div>

<input type="text">
<input type="password">
<div title="xx1">
    div1
</div>
<div title="xx2">
    div2
</div>
<a href="" title="xx3">你好</a>
<p title="xx3">p3</p>
</body>
</html>